package com.object.oriented.exam.system5.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author xdf
 * @date 2023-06-14
 * @description 考试类
 */
@Data
@TableName(value = "exam")
public class Exam {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String subject;

    private String location;

    private Date date;
    /**
     * 试卷id
     */
    private Long paperId;

    /**
     *状态
     */
    @TableField(exist = false)
    private byte status=0;
}
